
import { constantRoutes } from '@/router'

export default {
  namespaced: true,
  state: {
    menusList: []
  },
  mutations: {
    setMenus(state, val) {
      state.menusList = [...constantRoutes, ...val]
      state.menusList.push({ path: '*', redirect: '/404', hidden: true })
    }
  }
}
